package com.rbac.admin.mapper.system;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rbac.admin.entity.system.SysDictField;
import com.rbac.admin.entity.system.SysDictTable;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface SysDictionaryMapper extends BaseMapper<SysDictTable> {

    List<Map<String, Object>> selectTables(@Param("tableName") String tableName,
                                           @Param("comment") String comment);

    List<Map<String, Object>> selectColumns(@Param("tableName") String tableName,
                                            @Param("columnName") String columnName);

    int batchInsertOrUpdateFields(@Param("list") List<SysDictField> fields);
}


